<template>
  <div>
    <h4>观看记录</h4>
    <ul>
      <li v-for="jilu in historydata" :key="jilu.id">
        <img :src="jilu.historyvideo">
        <p>{{jilu.Title}}</p>
      </li>
    </ul>
  </div>
</template>

<script>
// import axios from "axios"
export default {
  name: "Videojilu",
  data(){
    return{
      jilus:[],
    };
  },
   created() {
    this.$store.dispatch("LINK_HISTORY_DATA","/my/history")
    },
    computed:{
      historydata(){
        return this.$store.state.MyHistoryM.history
      }
   }
};
</script>

<style scoped>
h4 {
  width: 100%;
  height: 0.56rem;
  line-height: 0.56rem;
  padding-left: 0.18rem;
  box-sizing: border-box;
}
ul {
  width: 100%;
}
li {
  display: flex;
  border: 1px solid black;
  line-height: 0.56rem;
  margin-bottom: 0.17rem;
}
li img {
  margin-left: 0.17rem;
  width: 1.22rem;
  height: 0.65rem;
  margin-right: 0.08rem;
}
</style>